package com.jack.thinking.java._22.swing.button;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;

import com.utils.SwingConsole;

public class MyButton extends JFrame{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JButton b1 = new JButton("Button 1"), b2 = new JButton("Button 2");
	
	public MyButton() {
		setLayout(new FlowLayout());
		add(b1);
		add(b2);
	}
	
	public static void main(String[] args) {
		SwingConsole.run(new MyButton(), 300, 300);
	}
}
